package com.ziq.zcamp.bean.place

import com.google.gson.annotations.SerializedName
import com.ziq.zcamp.proguard.ProguardKeep
import java.io.Serializable

class CampListItem : ProguardKeep, Serializable {
    var id : Int? = null
    @SerializedName("camp_name")
    var campName : String? = null
    var location_addr : String? = null
    var longitude : String? = null
    var latitude : String? = null
    var distance : Long? = null
    var pictures : String? = null
    var score : Double ?= null
    var is_collect : Boolean? = null //是否收藏

    override fun equals(other: Any?): Boolean {
        if(other is CampListItem){
            return other.id == this.id
        }
        return super.equals(other)
    }

    override fun hashCode(): Int {
        var result = id.hashCode()
        return result
    }
}